package id.co.rho.scoring.cid.client.mvc;
///*
// * Ext GWT 2.2.4 - Ext for GWT
// * Copyright(c) 2007-2010, Ext JS, LLC.
// * licensing@extjs.com
// * 
// * http://extjs.com/license
// */
//package id.co.rho.scoring.cid.client.mvc;
//
//import com.extjs.gxt.ui.client.Registry;
//import com.extjs.gxt.ui.client.mvc.AppEvent;
//import com.extjs.gxt.ui.client.mvc.Controller;
//import com.extjs.gxt.ui.client.mvc.Dispatcher;
//import com.extjs.gxt.ui.client.widget.ContentPanel;
//
//public class AppController extends Controller {
//
//    private AppView appView;
//
//    public AppController() {
//        appView = new AppView(this);
//
//        registerEventTypes(AppEvents.Init);
//        registerEventTypes(AppEvents.LoginSuccess);
//        registerEventTypes(AppEvents.MainLoginView);
//    }
//
//    public void handleEvent(AppEvent event) {
//        if (event.getType() == AppEvents.Init) {
//            forwardToView(appView, event);
//            appView.setEnabled(false);
//        }else if(event.getType() == AppEvents.LoginSuccess){
//            appView.setEnabled(true);
//            ContentPanel navPanel = (ContentPanel) Registry.get(AppView.WEST_PANEL);
//        	navPanel.show();
//            Dispatcher.forwardEvent(AppEvents.MainSearchView);
//        }else if(event.getType() == AppEvents.MainLoginView){
//            appView.setEnabled(false);
//        }
//    }
//    
//}
